package com.jianneng.jdg.model.homeactivity;

import com.example.com.jianneng.jdg.R;
import com.example.com.jianneng.jdg.R.id;
import com.example.com.jianneng.jdg.R.layout;
import com.example.com.jianneng.jdg.R.menu;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.Window;
import android.view.View.OnClickListener;
import android.widget.LinearLayout;

public class FindFriendActivity extends BaseActivity {
private LinearLayout mScreenFriend,mFindBack;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.activity_find_friend);
		init();
		mScreenFriend.setOnClickListener(new MyOnClickListener());
		mFindBack.setOnClickListener(new MyOnClickListener());
		
	}
	private void init() {
		mScreenFriend = (LinearLayout) findViewById(R.id.screen_friend);
		mFindBack = (LinearLayout) findViewById(R.id.find_friend_back);
		
	}
	public class MyOnClickListener implements OnClickListener{

		@Override
		public void onClick(View v) {
			switch (v.getId()) {
			case R.id.screen_friend:
				Intent intent = new Intent(FindFriendActivity.this, ScreenFriendActivity.class);
				startActivity(intent);
				break;
			case R.id.find_friend_back:
				finish();
				break;
			default:
				break;
			}
			
		}
		
	}
	
}
